<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" ValidateRequest="false" Inherits="System.Web.Mvc.ViewPage<IndyMosaic.Models.Blog.Entry>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content id="Content3" contentplaceholderid="HeaderContent" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Scripts/cleditor/jquery.cleditor.css" />
    <script type="text/javascript" src="../../Scripts/cleditor/jquery.cleditor.min.js"></script>
    <script type="text/javascript" src="../../Scripts/cleditor/jquery.cleditor.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery.form.js"></script>
    <script type="text/javascript">
        function CorrectMoreTag(html) {
            //$("#entry_content")[0].value.replace("&lt;##MORE##&gt;", "<##MORE##>")
            $('#entry_content').attr("value", $('#entry_content').val().replace("&lt;##MORE##&gt;", "<##MORE##>"));
        }

        $(document).ready(function () {
            var editor = $("#entry_content").cleditor({ width: 700, height: 350 });
            editor[0].change(CorrectMoreTag);
        });
        
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>
    <% Html.RenderPartial("EntryForm", Model); %>
</asp:Content>
